<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOtherLoginTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('other_login', function(Blueprint $table)
		{
			//第三方登录
			$table->increments('id');
			
			//openid
			$table->string('open_id');
			
			//类型
			$table->string('type');

			//
			$table->string('unionid')->comment('微信unionid');
			
			//用户id
			$table->integer('member_id');
			
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('other_login');
	}

}
